RR/GM: Fixed failing phantomjs tests