Handled mongodb connection error
Test case added for testing mongodb connection failure