randomPairs returns ints, fixed up a bunch of tests