Dogs and owners compete in agility trials