updated collision test to new API