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

Problem solved. Tests included

Please review

@pmalves 
What is this testing, exactly ? Shouldn't we check that the value returned is the expected one ?