using karma properly, added browser required check too