Added ability to build mods before running the tests.