add tests for detector