Write all testcases for remove() and removeDeep().