Fixed small things in delete test
fixed issue when saving without setting embeddedKeys, and added test for saving