Remove raise statements that should never get called and remove now
obsolete tests.