Add basic tests for API server and routes