added testcases...tried to fix actionmode