Added some tests and raising an exception for missing params on create.