extending capsule-capsule distance computation

  adding a test.