test: add TestMismatchPortTypes. fix #20