Write a test for mutateConnGeneWeight

Ended up fixing a few runtime errors along the way