Fixed Params.require method and Added tests.