Add test_binary (test for #214)