Remove main method already removed in master.
Make test pass by using a method reference.
Add license headers.