add error logging at when runTests is executed