Fix unit tests related to trygets