Removed lefover debugging code
Forgotten if for debugging message
Making examples testable + test for examples.