Added tests for patient count API endpoint.