Added test for categoriser and fixed issues

In the previous commit the categoriser didn't compile, I fixed those
issues and I create the test to launch only a test case and checks that
the categoriser compiles