Replace Eclipse JUnit with downloaded versions

The JUnit version with Eclipse was old and changed between
distributions. Now the current version will be used. Also instead of
only hamcrest-core hamcrest-all is used which provides a lot of
additional matchers.
Remove references to deprecated methods