Add assertions to test parseResidentCommand().