There's always possibility that ram got damaged in the friend's or your computer. Did you properly disconnect power on both computers while removing and reinstalling them ? That and damage from static electricity are major sources of damage to all components.