more testing

diff --git a/examples/sample.makefile.regen b/examples/sample.makefile.regen
index 1b8f8c4..b3b0e0d 100755
--- a/examples/sample.makefile.regen
+++ b/examples/sample.makefile.regen
@@ -44,7 +44,7 @@
 	> Makefile.$$
 
 (	echo
-	echo "${ASN1PDU}.c: $0"
+	echo "${ASN1PDU}.c: $0 ${ASN1MODULES}"
 	echo "	make regen-makefile"
 	echo "	@touch ${ASN1PDU}.c"
 	echo "	make"
@@ -82,17 +82,36 @@
 	echo '	rm -f ./.tmp.[12].$$$$; \'
 	echo '	done; fi'
 	echo "	@if test -f ./sample-${ASN1PDU}-1.per ; then \\"
-	echo "	for f in ./sample-${ASN1PDU}-*.per; do \\"
+	echo "	for f in ./sample-${ASN1PDU}-[1-9].per; do \\"
 	echo '	echo "Recoding $$f into DER into XER and back..."; \'
-	echo '	./${TARGET} -iper -oder -b 1 $$f > ./.tmp.1.$$$$ || exit 2; \'
-	echo '	./${TARGET} -iper -oder -b 17 $$f > ./.tmp.1.$$$$ || exit 2; \'
-	echo '	./${TARGET} -iper -oder -b 33 $$f > ./.tmp.1.$$$$ || exit 2; \'
-	echo '	./${TARGET} -iper -oder -b 980 $$f > ./.tmp.1.$$$$ || exit 2; \'
+	echo '	./${TARGET} -iper -oxer -b 1 $$f > ./.tmp.1.$$$$ || exit 2; \'
+	echo '	./${TARGET} -iper -oxer -b 17 $$f > ./.tmp.2.$$$$ || exit 2; \'
+	echo '	./${TARGET} -iper -oxer -b 33 $$f > ./.tmp.3.$$$$ || exit 2; \'
+	echo '	./${TARGET} -iper -oxer -b 980 $$f > ./.tmp.4.$$$$ || exit 2; \'
+	echo '	diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 2; \'
+	echo '	diff ./.tmp.2.$$$$ ./.tmp.3.$$$$ || exit 2; \'
+	echo '	diff ./.tmp.3.$$$$ ./.tmp.4.$$$$ || exit 2; \'
 	echo '	./${TARGET} -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
 	echo '	./${TARGET} -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 2; \'
+	echo '	./${TARGET} -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 2; \'
+	echo '	diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 2; \'
+	echo '	rm -f ./.tmp.[1234].$$$$; \'
+	echo '	done; fi'
+	echo "	@if test -f ./sample-${ASN1PDU}-1-padded.per ; then \\"
+	echo "	for f in ./sample-${ASN1PDU}-[1-9]-padded.per; do \\"
+	echo '	echo "Recoding byte-padded $$f into DER into XER and back..."; \'
+	echo '	./${TARGET} -per-padded -iper -oxer -b 1 $$f > ./.tmp.1.$$$$ || exit 2; \'
+	echo '	./${TARGET} -per-padded -iper -oxer -b 17 $$f > ./.tmp.2.$$$$ || exit 2; \'
+	echo '	./${TARGET} -per-padded -iper -oxer -b 33 $$f > ./.tmp.3.$$$$ || exit 2; \'
+	echo '	./${TARGET} -per-padded -iper -oxer -b 980 $$f > ./.tmp.4.$$$$ || exit 2; \'
+	echo '	diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 2; \'
+	echo '	diff ./.tmp.2.$$$$ ./.tmp.3.$$$$ || exit 2; \'
+	echo '	diff ./.tmp.3.$$$$ ./.tmp.4.$$$$ || exit 2; \'
+	echo '	./${TARGET} -per-padded -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \'
+	echo '	./${TARGET} -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 2; \'
 	echo '	./${TARGET} -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 2; \'
 	echo '	diff $$f ./.tmp.1.$$$$ || exit 2; \'
-	echo '	rm -f ./.tmp.[12].$$$$; \'
+	echo '	rm -f ./.tmp.[1234].$$$$; \'
 	echo '	done; fi'
 	echo '	@echo ================'
 	echo '	@echo All tests passed'