added more test cases regarding connection and access of db objects