Unit test for creating