add test for dump mode