fix function test to work in chrome
v1.0.1