A basic API with some basic tests.