Resolver test cases

1. Added new test cases for `Resolver#connection_url_to_hash`
2. Modified the condition to find `database` name(this might be cosmetic change, can revert if required).