tests for userschema and rename a function in schema