unittests: add a first batch of unittests

This time dealing with the database models that power the application

Signed-off-by: Cleber Rosa <crosa@redhat.com>