big update in detectSpheres module and tests

2 jobs for master in 1 minute and 48 seconds (queued for 46 seconds)