Replace assert for expect.js on the format validation tests