Tests for the cli