improve binary test

test no longer expects a specific error, and leaves users free to
come up with their own errors as long as they exist