Does persist() or commit() return an integer for rows affected? If so, you may want to return that here for testing purposes