Test printing by reparsing instead of counting lines (since output is determined by underlying implementation)