Fix warnings in test suite

Some of the existing test code resulted in warnings with newer versions
of Check.

Signed-off-by: Michael Steinert <mike.steinert@gmail.com>