add tests for initApp