[fedocal] master: Fix imports and make the API tests running with the in memory database (2867c00)