More tests for replace.
Implemented replace for name atoms.