Fixed HasParameters::getParameter

Fixed bug with getting nested parameters as one argument.
Created tests for trait.