Testing error situations without changing the source code