Fixed examples tests

* Fixed examples tests
* Added dependencies between tests (closes #25)