test function server