fix headers order for examples
add examples to ctest