fix unit tests building for browser