tests updated to use nock and Math.randomseed