Added assert for issue #403
updated testcases for recently updated tests