Algo test for detection algorithm