Made --dry-run a common option.
Added API v1 serialization test.