Added test and examples to top-level directory.