Added test for modular projects, and refactored loading a test

Adding a 'full' test should now just be a case of adding the js file in tests/full.