Added tests for invalid values.

Improved error handling in Api Client.

Updated models with correct string lengths.
Corrected Assert.