Fix type for host parameter, add test for binaries. Fixes #3