diff --git a/tests/18-coap-lwm2m/06-lwm2m-ipso-test.sh b/tests/18-coap-lwm2m/06-lwm2m-ipso-test.sh
index 15fd962438fbb99845e6b4000ef86a60ae6f5471..7684044a8f7ade22f4a571632c56d2e80711d7a1 100755
--- a/tests/18-coap-lwm2m/06-lwm2m-ipso-test.sh
+++ b/tests/18-coap-lwm2m/06-lwm2m-ipso-test.sh
@@ -3,12 +3,13 @@
 # Contiki directory
 CONTIKI=$1
 # Test basename
-BASENAME=06-lwm2m-test
+BASENAME=06-lwm2m-ipso-test
 
 IPADDR=fd00::302:304:506:708
 
 # Starting Contiki-NG native node
 echo "Starting native node - lwm2m/ipso objects"
+make -C $CONTIKI/examples/ipso-objects clean >/dev/null
 make -C $CONTIKI/examples/ipso-objects > make.log 2> make.err
 sudo $CONTIKI/examples/ipso-objects/example-ipso-objects.native > node.log 2> node.err &
 CPID=$!
@@ -19,7 +20,15 @@ wget -nc https://joakimeriksson.github.io/resources/leshan-server-demo-1.0.0-SNA
 echo "Starting leshan server"
 java -jar leshan-server-demo-1.0.0-SNAPSHOT-jar-with-dependencies.jar >leshan.log 2>leshan.err &
 LESHID=$!
-sleep 50
+
+COUNTER=10
+while [ $COUNTER -gt 0 ]; do
+    sleep 5
+    if grep -q 'OK' leshan.err ; then
+        break
+    fi
+    let COUNTER-=1
+done
 
 echo "Closing native node"
 sleep 1
diff --git a/tests/18-coap-lwm2m/07-lwm2m-standalone-test.sh b/tests/18-coap-lwm2m/07-lwm2m-standalone-test.sh
index 5516eeb46a5e7888d6ca3aec92b92443c7a33f6a..b13352447eeb81db3ddce79a26a9b3e48a630aff 100755
--- a/tests/18-coap-lwm2m/07-lwm2m-standalone-test.sh
+++ b/tests/18-coap-lwm2m/07-lwm2m-standalone-test.sh
@@ -5,9 +5,10 @@ CONTIKI=$1
 # Test basename
 BASENAME=07-lwm2m-standalone-test
 
-git clone https://github.com/contiki-ng/example-lwm2m-standalone.git
 # Building standalone posix example
-make -C example-lwm2m-standalone/lwm2m > make.log 2> make.err
+echo "Compiling standalone posix example"
+make CONTIKI_NG=../../$CONTIKI -C example-lwm2m-standalone/lwm2m clean >/dev/null
+make CONTIKI_NG=../../$CONTIKI -C example-lwm2m-standalone/lwm2m >make.log 2>make.err
 
 echo "Downloading leshan"
 wget -nc https://joakimeriksson.github.io/resources/leshan-server-demo-1.0.0-SNAPSHOT-jar-with-dependencies.jar
@@ -20,11 +21,19 @@ example-lwm2m-standalone/lwm2m/lwm2m-example coap://127.0.0.1:5686 > node.log 2>
 
 CPID=$!
 
-sleep 50
+COUNTER=10
+while [ $COUNTER -gt 0 ]; do
+    sleep 5
+    if grep -q 'OK' leshan.err ; then
+        echo OK with $COUNTER
+        break
+    fi
+    let COUNTER-=1
+done
 
-echo "Closing native node"
+echo "Closing standalone example"
 sleep 1
-pgrep ipso | sudo xargs kill -9
+pgrep lwm2m-example | sudo xargs kill -9
 
 echo "Closing leshan"
 sleep 1
diff --git a/tests/18-coap-lwm2m/example-lwm2m-standalone b/tests/18-coap-lwm2m/example-lwm2m-standalone
index 7ab51eaaa309c123fbd318c6ad3338cce1e48e48..67b858437f7cf1e4e027d821c4c2ac15fdf2ab44 160000
--- a/tests/18-coap-lwm2m/example-lwm2m-standalone
+++ b/tests/18-coap-lwm2m/example-lwm2m-standalone
@@ -1 +1 @@
-Subproject commit 7ab51eaaa309c123fbd318c6ad3338cce1e48e48
+Subproject commit 67b858437f7cf1e4e027d821c4c2ac15fdf2ab44