Fixing mocha runner; better error line detection and more strict test selection