Add phantomjs to packages.
Bug fix.
Update tests.