refactored some of the tester, added np.array creation for detections