libcoprthr: moved tests to examples and fixed include issue