Fixes for IE when console is not available
Added expect() calls in core/debug tests