Add assertNoDuplicateIds to a functional test trait