Renamed folder test to examples

Added a couple of asserts to examples to automatically ensure
everything is ok.