Add tests for sort_link through association

Initial beginning, to be improved…