added license file and fix broken tests