Get available port for test

Fixes #58