fix param creation for test

fix two bugs affeincting nose tests