added tests to session.go, tomb implemented