Compensated tests for refactoring of command