create function pass test