Started fixing the apply.Command method to follow the new unit-testing convention