PM: add tests around 'detect' module