Added proper tests for "utils.gen_all_params".
Added proper tests for "utils.gen_all_params".

* This function was added in the heat of the moment without proper tests.
  I have now righted this wrong. I've also added the proper pre-conditions.

horia141/masters-thesis,horia141/masters-thesis