added stubs for replace_loc unit tests