Refactoring: application testing app