Another attempt to fix frontend tests with a workaround for phantomjs' bugs with localStorage