add testcases and update readme