Fix mk_statement test helper to set the statement to_date to the end of the month