Test slug function and ordering advice items by weight