updated updated code to automatically present report view when test results are poor