fix barverify, now using assert.deepEqual