Add by_id and events functions
TODO added
Read directly from Repo
Update and outcomment non working tests
Deleted old test