TST: Add tests for dump.