Unit tests for numberOfRows counting