Added get/set sockopt and new tests