ApplicationTests small refactoring