tests for the examples from the tutorial
