added tests for getting database credentials