Added more assert to testcases.