Improved patient API tests.