moved test to samples, and added a proper test framework.
updated README about the timeout