added tests for session and validate unique