mock browser in spec to check browser