Fix some tests
- getSockOpt for last_endpoint was returning one too many characters
- Added missing context opt constant