Added server security unit tests