Added ability to pass in a session Id and updated demo and test classes