1. add hamcrest and mockito as test scope dependencies
2. added null pointer handling to isMongosConnection method implementation.