Fix tests. Got working for Chrome 31