added spec for binary data. fixed a few breaking specs.