More getsockopt and constant tests