ENG-5066: add "SELECT *" tests, and rewrite the checkPushDownLimit function.