split up allreduce-kahan.cc into source+test for each of the three layers