remove trace code
add test for none on get_next_closest_available