new method mal with test case