added test directory with tests and changed the example