[loader] Fix attachment order test