Fix failing tests in Opera and Chrome

Fixes #35