Upgrading to io.netty-3.6.6.Final. Also fixing some unit tests