Add log crate to fix test on Mac OS X

To follow mozilla/rust#12791 and fix `make check` on Mac OS X, I added `extern crate log;` into the crashed test code.