Fixed hive tests with non-deterministic output (e.g. limit without order by).

See
https://github.com/amplab/hive/commit/31be6d8a61f454293f13e0d8bb2d88c3dce19c44
Merge pull request #26 from ss77892/shark-0.11

Fixes for SHARK-176, SHARK-173