We should have less abstraction in the tests.

It's not useful.
Fix build with cmake