use phantomjs for event test