Why did milk and dark chocolate come up as green when they both include cocoa? 

About Cocoa

There is between 5 to 50 percent cocoa powder in these. Your test was given a green result since the intolerance threshold of 100% had not been reached. Therefore, dark chocolate should only be used seldom and milk chocolate in moderation to stay within the daily limit of 100%.