Fixes #1002: Generate a test config with an available port.
Fixes #1002: Generate a test config with an available port.

mjbrender/snap,intelsdi-x/snap,mjbrender/snap,intelsdi-x/snap,sandlbn/snap,sandlbn/snap