convert exportBinary tests to jasmine