NOJIRA - Refactored a small test in SessionMonitorTests

 to remove small chance of NPE and unused var.