fixed broken test on phantomjs