ipa: Make test actually terminate.  Ensure termination after 30s.
diff --git a/ipa/IPA_Test.ttcn b/ipa/IPA_Test.ttcn
index c248a35..fbff84a 100644
--- a/ipa/IPA_Test.ttcn
+++ b/ipa/IPA_Test.ttcn
@@ -124,13 +124,21 @@
 }
 
 testcase TC_recv_dump() runs on test_CT {
+	var integer i;
+	timer T := 30.0;
+
 	f_init();
 
-	//var PDU_BSSAP bssap := f_gen_cl3();
-	//f_send_bssap_cc(bssap);
+	alt {
+		/* wait for BSC to stop. The idea is that the BSC components terminate first */
+		[] bsc[0].BSC.done { }
+		[] T.timeout { setverdict(fail); }
+	}
 
-	while (true) {
-		//SCCP.receive;
+	all component.stop;
+	/* terminate the MSCs */
+	for (i := 0; i < NUM_MSC; i := i+1) {
+		msc[i].MSC.stop;
 	}
 }