[fix] getEntryById now returns an array with one element
[add] get one entry with the API
[add] test for getEntryById