tests for --dump