basedomain: Create tables before running tests

pylint imports all code, so we shouldn't create the
test during import, in the global namespace.

Change-Id: I0e8357553ffd21eb6bb54ad5f57c852adfe82024