check whether annotation object has 'color'
revise extract.js test