Fix QUnit.asyncTest() and remove unused test code

"teardown" was misspelled in test_mf-photo.js which resulted in Sinon
fake timers not being cleaned up, which in turn made QUnit.asyncTest()
hung indefinitely.

Also, remove unused test code from test_mf-application.js (a module
without tests).

Change-Id: If599c0702b0cd0dfc4fcd87c237c388e11b28dbe
Merge "Fix QUnit.asyncTest() and remove unused test code"