Fixed test_util, added test for get_entries.

Refactored async_log_test a little, and applied headers to all
exceptions.