Minor update to test utility to check if the server has actually sent a response before trying to use it, corrects a NullPointerException that was masking real failures.
fix root context test