servlet: unit test with phantomjs