add unit tests for app package