create unit test for create data