examples to tests works finally

Modified all tests cases to follow the examples form
TODO: Allow for try catch exceptions etc.