fixed one of the examples
fixed test

formatting

adding -Werror to cmake