submodule: add submodule setup to test_helper
submodule: add submodule support

Closes #408.