moved test to example
added testing framework