Re-indent testApp.cpp and changed function declaration order for compile error