Add unit tests for create() method.