Updated tests for It command

Improving test coverage, in light of the bugs we introduced in 3.1 due to poorly-resolved merge conflicts.