Further remove/replace tests.

-- Add test cases for more remove/replace cases.
-- Tidyup: use setUp() and tearDown() methods for test scripts.
-- Fiddling about with rounding errors.