Added tail, protocol and tail tests
Initial protocol tests