Switch one last test from get_unused_port to bind_unused_port.

Closes #676.