Add mergepath and ext_func_test targets to node RakeFile

Extract functional api and tester from scaling_func_test