fix incorrect error name, remove data cloning
clean up create function
add update create tests
add unit tests skeletons