Fix various failing test cases
Better validation of int params, added tests for those
Remove dead code
Correctly handle MW's db table prefixes
Merge pull request #23 from wmde/fixTests

Fix various failing test cases
Remove calls to removed APITestSetup::tearDown
Merge pull request #24 from wmde/removeTearDown

Remove calls to removed APITestSetup::tearDown
Merge branch 'master' into dbal

Conflicts:
	src/ByPropertyValueEntityFinder.php
	src/DIC/WikibaseQueryBuilder.php
	tests/System/Api/EntitiesByPropertyValueApiTest.php
	tests/System/Api/PermissionsTest.php