Add tests for browser field handling in npm metadata