modify toints unit test so that it works regardless of cardinal size