fixed test for rows and columns