Spec cleanup around command logged in tests.