added tests for example