Adding testing routines for indices and net unit tests.