- removed unused bogus function and added testcase