lint Gruntfile
Move getSmallDate/getSmallDistances to utils, add and clean tests