Improve method that reads json files from class path. 

Hi, I'm starting to use your library and when debugging I found some issues with readFileInClasspath. I've made some changes and added tests, also making the logger more accessible to test classes and adding the mockito library to verify some things. If you think these changes have value please incorporate into your code. Thanks, Matt