A study of global magnetic helicity in self-consistent spherical dynamos