Add support for running tests using phantom js