Refactoring how testable app is obtained