added test and example app