Edited addDetailsIntoChromosome with test code