more tests and implementation of to_flocker_yaml