remove an unused local func
add a failing test (#216)