Refactored setParameter
added the possibility to set multiple parameter in setParameter
changed test case