test for create function