Bentley-Ottann test implementation