Added: test to Distance class
Fixed: test to be compatible with PHP 5.3.x