qunit test added for function.js