Adds tests to flog.

They're not pretty, but they're pretty decent.