Add file header to cli module
Tests for cli module, more tests for the client module