Added tests for write_object_diff with binary files

Added tests for patch.write_object_diff's binary comparison
behaviour.