update test app

add the main function