Add tests for invalid requests (close gh-94).
Add gurad for no command.