diff --git a/asn1c/tests/check-65.c b/asn1c/tests/check-65.c
index 65078e2b328b387f2b9ca9c42d8c2485a9280020..3ada643178d5aca53e74e3351431cf75b766bc27 100644
--- a/asn1c/tests/check-65.c
+++ b/asn1c/tests/check-65.c
@@ -16,9 +16,7 @@ uint8_t buf1[] = {
 	32 | ((2 << 6) + 4),	/* [4], constructed */
 	4,
 	0  | ((2 << 6) + 6),	/* [6], primitive */
-	2,
-  0x91,
-  0x92
+	0
 };
 
 uint8_t buf2[] = {
@@ -32,8 +30,8 @@ uint8_t buf2[] = {
 	4,
 	0  | ((2 << 6) + 6),	/* [6], primitive */
 	2,
-  0x91,
-  0x92,
+  0xC0,
+  0x00,
 
 	32 | ((2 << 6) + 2),	/* [2], constructed */
 	6,
@@ -41,16 +39,16 @@ uint8_t buf2[] = {
 	4,
 	0  | ((2 << 6) + 6),	/* [6], primitive */
 	2,
-  0x91,
-  0x92,
+  0x80,
+  0x00,
 
 	32 | ((2 << 6) + 3),	/* [3], constructed */
 	4,
 	0  | ((2 << 6) + 6),	/* [6], primitive */
-	2,
-  0x91,
-  0x92,
-
+	3,
+  0x80,
+  0x01,
+  0x02,
 };
 
 static void
diff --git a/asn1c/tests/check-assembly.sh b/asn1c/tests/check-assembly.sh
index a0b0fdb1278374046195d094837e393b169a5004..b4bd1182f87b10d2c32bc6c5ed98e835b0a6005b 100755
--- a/asn1c/tests/check-assembly.sh
+++ b/asn1c/tests/check-assembly.sh
@@ -44,7 +44,7 @@ CXXFLAGS=\${COMMON_FLAGS} ${CXXFLAGS}
 
 all: check-executable
 check-executable: compiled-module *.c*
-	\$(CC) \$(CFLAGS) -o check-executable *.c*
+	\$(CC) \$(CFLAGS) -o check-executable -lm *.c*
 
 # Compile the corresponding .asn1 spec.
 compiled-module: ${asn_module} ../../asn1c