Added unit test to check for returned value on create