fixed unit tests and call with params