Add support for expand function for empty collection.
scaffold for `expand` test.
Remove unnecessary properties when expand, add test for various cases.
Refactoring code, add test for empty item.
Add a util function: findLinkedByIds.