Write testcase for various browser bugs

Tests for #34 
and same thing for IE 8