Fixed failing test caused by inconsistent browser behaviour