improved the testing framework; started to add distance()