build test function