Add getColor method on Doc
Fix tests following changes on the API side