Implement get_annotations(). Try to fix tests.