Refactoring of tests to use gatewayparams and callbackserver params. made tests faster. refs #148