Add testcase for database initialization