Create test for annotations.
Fix comment in setAnnotations.

It returns an Array, not an Object.
Refactor clearAnnotations.
Merge pull request #1257 from BallBearing/issue1253

Give some more love to #1253.