Extend functionality of session namespaces and add tests

refs #5510