test that it raises an error when minting on an unsaved object