test: do not catch exceptions if not in phantomjs