tests updated to use Mockito
logging configuration for testing