update code and tests to deal with null bounding boxes; fix some other test errors; now runs clean