Fix failed tests

What happened if attempting to append a binary with nil pointer? I thought in that way it will end up appending a zero bytes binary object.