testing reverts and commands with test file