added test rig from go example