Test the public API.