#152 test case for MDEV-5399