Fix soap extend replacement

Adds tests and default configuration for #30.