Fix linker issues, Add tests of different detectors.