switch to ints for row and col dims
fix the test to avoid floating point comparisons