Fix the failing front end test when run in PhantomJS.