Unit tests

Unit test setup. The controller test in Application is set up, but dispatching the actual controller does not work quite right.

Unit tests for Module entity
fix conflict