Updated functions_test.js test