make tests work on browsers