added testcases for latest bug fixes