#88 Fix madatory for optional parameter and added tests for it