testing saving object to yaml