Implements module tests

closes #2521
- Add new module tests
- Implements new `test-module` task to specifically run module tests
Merge pull request #4203 from halfdan/2521-module-test

Implements Ghost module tests