Added: new test for applications module.
Code cleanup in jobs module tests.