hnbgw: verify empty talloc asn1_context at end of tests

This allowed me to find massive memory leaks in osmo-hnbgw: at the end
of each test, run f_shutdown_helper(), and in it query 'show talloc' for
an empty asn1_context.

Hence verify that all the scenarios run in these ttcn3 tests have no
asn1 de/encoding memory leaks.

Change-Id: I2948ee6f167369a2252f85b493e9653b93c7e4e9
diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn
index d4f101b..e9db214 100644
--- a/hnbgw/HNBGW_Tests.ttcn
+++ b/hnbgw/HNBGW_Tests.ttcn
@@ -61,6 +61,8 @@
 import from PFCP_Templates all;
 import from PFCP_CodecPort all;
 
+import from TCCConversion_Functions all;
+
 modulepar {
 	/* IP address at which the HNodeB can be reached */
 	charstring mp_hnodeb_ip := "127.0.0.1";
@@ -372,6 +374,8 @@
 }
 
 friend function f_shutdown_helper() runs on test_CT {
+	f_verify_talloc_bytes(HNBGWVTY, {"asn1_context"}, 1);
+
 	all component.stop;
 	setverdict(pass);
 	mtc.stop;