Add test runner for WikibaseDatabase component and got rid of bad dependencies so tests can be run on their own

Change-Id: Ice733240915539418c272385293ac59929a74361
Merge "Add test runner for WikibaseDatabase component and got rid of bad dependencies so tests can be run on their own"