Writing unittests about the mappings database