Removing unused methods in TestCase and unused Application mock.