Scope occurrences. Add tests