Add parsing tests to writer to ensure they wrote correctly.