Added a test file for example0: ironed out some bugs :)