Minor improvements to the ers.port and ers.host unit tests