Fixed getSessionSubject. Added test