removed donttest in examples
fixed bug in examples