Minor code cleanup in dump_test.go.