added some graph reduction tests, fixed an issue with mutiply redirected inputs