fixed calc circle intersection function and tweaked tests