Added a couple of simple tests and API methods.