#150 test cases from MDEV-5396