Changed test cases with anonymous classes to comply with changes to database interface