Add tests for the "explain" command