Remove duplication from browser tests