fix testcase with deprecated api call
add testcase illustrating imports & vars failing