Adding port4 testcode