Added test for session commands.