Added unit test cases for bug# 10862.