Add tests for Base cli class

Test _get_username_password method
Test with_user method