Write testcase for various browser bugs

Tests for #34