added test for function calc_min_max_interval
more correct tests (float results)
more correct type spec for calc_min_max_interval
delete obsolete code