tests: Make sure that tests that use the database have testdata

Do that by sharing the testData class and use @Before for it.