Added test for diff on invalid session
Fixed test