code for test application