Add test for localhost with port