add remote version of function test task in gruntfile