fixes for capsuleVsAACube() with unit tests