Typo fixes

Some small typo fixes of the namespace in the tests and in the body of an Exception.