Added tests using a test database

* Check configuration element access
* Check internal user database access
Added some tests to EnabledCategoryServiceTest