Fix warning to use correct symbol
fix tests for *warn-on-replace*
add documentation for *warn-on-replace*