Separate out testing environment into qunit-cli module