Add example and some tests