test case where it returns wrong number instead of undefined