Add tests for LinkResource search and ordering