Added test for binary type that loads data from real document and verifies encoded in and out works..