Add unit-test for ErrorForwarder

This is my first try to contribute to you project.
I am new to the project, so I've decided to write some unit-tests.
Also I am new to Java, so feel free to correct me.