Added test for asserting copy of source position on replacement