Added tests for detectors.js (#95)