Testcase and db setup for testing