test for limiting patients