Tests: fixed registration of annotations