move print logic test to StatementTest