Add a unit test for tests and testloading hooks

Signed-off-by: Petr Šabata <contyk@redhat.com>