abstract and mock browser tests