added unit test for command action in an expired session