fixed a bug on remote port
Add testing config