Rostest random port

Supersedes #467.