rename test to detect.
refactor the executable.