adding test and fix to unbundled-resources sending binary data