Serializing a test job spec throws an error