add unit tests for application