Added Tests for CLI