added more replacement tests (a few dozen remain to be written, then look at the issue list to see what is left).