Add active method to determine active element

I have added an active method to the session object, added the documentation in the test-case class, and implemented the test, removing with it the incomplete call.