Fixing the detection integral tests

**Warning:** This branch should be rebased and merged after #148 is reviewed and merged into dev.

- - -

This fixes the integral detection tests from the tests refactoring happened in the #147