Add tests for getting applications.