Convert "core" tests to use libcheck

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