getApplications() unit test failing