Improve tests for the debugsqlshell command.

Fix #424.