Improved transpose tests with row/col functions instead of error-prone hand computation