Add tests for tutorial examples