you can test your dispose correctness by creating a session then disposing it - once disposed, there should be nothing left in the DOM and nothing on the global object