Fix bin/hy and add a unit test

Signed-off-by: Julien Danjou <julien@danjou.info>