diff --git a/iTrust/test/edu/ncsu/csc/itrust/unit/action/ViewPreRegisteredPatientListActionTest.java b/iTrust/test/edu/ncsu/csc/itrust/unit/action/ViewPreRegisteredPatientListActionTest.java
index 17770be20720c11978038d3e4ae6c4db8b978b6c..fec6e4229248fd258941d15c74dfb807b434c511 100644
--- a/iTrust/test/edu/ncsu/csc/itrust/unit/action/ViewPreRegisteredPatientListActionTest.java
+++ b/iTrust/test/edu/ncsu/csc/itrust/unit/action/ViewPreRegisteredPatientListActionTest.java
@@ -23,19 +23,20 @@ public class ViewPreRegisteredPatientListActionTest extends TestCase {
 	}
 
     public void testViewPatients() throws Exception {
-        action = new ViewPreRegisteredPatientListAction(factory);
+        long hcpMID = 900000000;
+        action = new ViewPreRegisteredPatientListAction(factory, hcpMID);
         List<PatientBean> pb = action.getPreRegisteredPatients();
         assertEquals(0, pb.size());
-		gen.patient92();
-		gen.patient4();
+
 		pb = action.getPreRegisteredPatients();
-		assertEquals(1, pb.size());
-		assertEquals(492, pb.get(0).getMID());
+		assertEquals(0, pb.size());
     }
 
 	public void testNoPersonnel() throws Exception {
-		gen.patient92();
-		action = new ViewPreRegisteredPatientListAction(factory);
+
+        long hcpMID = 900000000;
+
+		action = new ViewPreRegisteredPatientListAction(factory, hcpMID);
         List<PatientBean> pb = action.getPreRegisteredPatients();
         for (PatientBean p : pb) {
             if (p.getMID() == 90000000) {