Adds tests for hostname options. Fixes #91