Enhance tests.
Merge remote-tracking branch 'nbeloglazov/master'
Union privileges implemented.