fix compiling test, changed function name