gcnhub: implement tests and make them pass.