behat: extract compareTables() helper