function 'distance' returns in 'km'.
add 'midje' dev dependency.
test code renamed.