[CDA-15] Solved problem of assigning values ​​to parameters

Problem solved. Tests included

Please review

@pmalves 
Correct. My mistake.