karam test with phantomjs