Move example code into (mostly commented) test
Remove unnessecary directives