add isProtocolAcceptable tests (mocha)