[avocado-110] Fixing issues with logging and coverage check.

Small logging and bounds checking fixes.