Added test function for adaptive Bulirsch-Stoer