unittesting for file.serialize and yaml & json filters