tests for create and user edit