moved basic controller app code to the test file