Added few tests for ``protocols`` option, updated docs