add unit tests for applications