test for application logic