diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn
index 7e6c8725ab6e2079e1ee693df189e0d94ecbd8ae..c5b7840daf4050dcb1b380ecbcb95f8d7c809b9c 100644
--- a/LibOneM2M/OneM2M_Functions.ttcn
+++ b/LibOneM2M/OneM2M_Functions.ttcn
@@ -101,7 +101,7 @@ module OneM2M_Functions {
 			vc_aeSimu := AeSimu.create("AE1") alive;
 				
 			// Map
-			map(self:mccPort, system:mcaPort);
+			map(self:mccPort, system:mccPort);
 			map(vc_aeSimu:mcaPort, system:mcaPort);
 			map(self:acPort, system:acPort);
 			activate(a_default());
@@ -1365,7 +1365,7 @@ module OneM2M_Functions {
 
 				v_request := f_getCreateRequestPrimitive(int16, p_requestPrimitive, -1);
 
-				mcaPort.send(m_request(v_request));
+				mccPort.send(m_request(v_request));
 				tc_ac.start;
 				alt {
 					[] mccPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
@@ -2409,10 +2409,11 @@ module OneM2M_Functions {
 				f_cse_postamble_deleteResourcesCSE();
 				if(vc_config == e_cf03) {
 				  f_cf03Down();
+				  stop;
 			   } else if (vc_config ==e_cf04) {
 				  f_cf04Down();
+				  stop;
 			   }
-				 stop;
 			}
 		}
 		
diff --git a/OneM2M_TestControl.ttcn b/OneM2M_TestControl.ttcn
index 18722af085bbfcb7c25733aad900cdf65676385d..2ee2c6e8e6bb19d4a5a49f7124df53d5ba711594 100644
--- a/OneM2M_TestControl.ttcn
+++ b/OneM2M_TestControl.ttcn
@@ -40,7 +40,7 @@ module OneM2M_TestControl {
 		execute(TC_CSE_REG_CRE_016_CST());
 		execute(TC_CSE_REG_CRE_016_POA());
 		execute(TC_CSE_REG_CRE_016_NL());
-		execute(TC_CSE_REG_CRE_018());
+		execute(TC_CSE_REG_CRE_019());
 		execute(TC_CSE_REG_CRE_022());
 		execute(TC_CSE_REG_CRE_023());
 		execute(TC_CSE_REG_CRE_025());
diff --git a/OneM2M_Testcases.ttcn b/OneM2M_Testcases.ttcn
index b95ca6dba3e8106fe0cdfe107f04b648be65f057..d045696e087100161680aa7be0555d5f9a3639dc 100644
--- a/OneM2M_Testcases.ttcn
+++ b/OneM2M_Testcases.ttcn
@@ -1249,6 +1249,7 @@ module OneM2M_Testcases {
 						v_createRequest.primitiveContent.remoteCSE.pointOfAccess := {"http://" & PX_CSE1_ADDRESS & "/"};
 	
 						v_cse1.start(f_CSE_REG_CRE_016(v_createRequest, c_optionalAttribute));
+						v_cse1.done;
 
 					}
 					
@@ -1325,7 +1326,7 @@ module OneM2M_Testcases {
 				 * @desc Check that the IUT rejects an AE registration (not allowed App-ID) 
 				 * 
 				 */
-				testcase TC_CSE_REG_CRE_018() runs on AeSimu system CseSystem {
+				testcase TC_CSE_REG_CRE_019() runs on AeSimu system CseSystem {
 		  	  	
 					var MsgIn v_response;
 					var RequestPrimitive v_request;