Add tests for use of bytearrays with hash objects. LP: 1256172