fix tests for show, improved command handling