fix #422 tests failing in old browsers

Fix two tests failing in IE7 and FF3.6