write a separate script (phantomjs-test)

Modules don't need to write tests/run-tests.js now, instead they can
just use the phantomjs-test script to search for scripts in tests/.