unit tests for gen_params method