test-log: Work around bugs in old check versions

Ubuntu precise runs assert argument twice, so move function calls
outside of assertions.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>