Add test for port, which has a bug