Testing a Command which Expects Input