[WIP] Inherited annotations are filtered out incorrectly

For now I've added failing test to demonstrate a problem from associated task.

Closes #71