added functionality for params and added multiple tests