Unit tests for annotations. Fixes for permissions problems, and url changes.