Fixed and revised test case to be able to build the project.

The current project cannot be build via mvn clean install due to a failing unit test.
This commit fixes & revises the unit test.