initial drop
corrects adding at tail
adds 4th test
initial drop
uses correct array index
changes names due to clash with stdlib
uses offsetof from stddef.h
checks requested ws resource and looks up protocol