Fixed documentation
Fixed required field not mandatory
Added tests