Fix failing TestBitIO test with --enable-daala_ec.

Change-Id: I6a885b7c6315261d67a9c2fcde914206b8301f4a
diff --git a/test/boolcoder_test.cc b/test/boolcoder_test.cc
index ef295ba..c0e6d48 100644
--- a/test/boolcoder_test.cc
+++ b/test/boolcoder_test.cc
@@ -68,11 +68,13 @@
 
         aom_stop_encode(&bw);
 
+#if !CONFIG_DAALA_EC
         // First bit should be zero
         GTEST_ASSERT_EQ(bw_buffer[0] & 0x80, 0);
+#endif
 
         aom_reader br;
-        aom_reader_init(&br, bw_buffer, kBufferSize, NULL, NULL);
+        aom_reader_init(&br, bw_buffer, bw.pos, NULL, NULL);
         bit_rnd.Reset(random_seed);
         for (int i = 0; i < kBitsToTest; ++i) {
           if (bit_method == 2) {