Add test for trailing space stripping.
Add basic test for CLI.