temporary workaround for strange outcomes of replacement test