sign up function with test