fix tests and build browser tests