refs #4996 better cross browser compatible tests. should now run on phantomjs