Update tests to JUnit 4.
Add missing license statements.