making test pass IE9

Also added tests for typeOf