refactor retrieving of parameters and also support junitparams