test for countLines method