[BUG #7216] Updated unit test to make the test compliant to the implementation.