#52: make buttons' test distance an option