Browser test suite & fixes
Top level enums, fixes #7