Early out when running unit tests
Added unit test for updateAnnotations