Test Refactor using command equals