added test to examples directory