[BUG #8428] Added some unit test to reproduce bug.