Protocol testing