Filling out unit tests for the API.