moved basic template app code to the test file