partial write of unittests for fragmentation function and creation of validated sample output