Upgrade to Hamcrest 1.3 and JUnit 4.11

This pull request updates the dependencies declared in the parent POM of Hamcrest and JUnit to the recently released versions.

There were two minor code changes necessary in order to make it compile.