fix tests to be port agnostic