Generalizes constructor for TestApp
Add explicit app argument to TestApp constructor