Mechanical testing of thin films