Added integral detection test