add application class and modify test